import { useAxios } from "@/hooks/useAxios";
import { IPrePay } from "@/pages/pay/type";

export function fetchPay(parameter: IPrePay) {
  return useAxios({
    url: 'hussarApi/qwWebService/preparePay',
    method: 'POST',
    data: parameter
  })
}


export function fetchUnPay(parameter: any) {
  return useAxios({
    url: 'hussarApi/qwWebService/queryUnPay',
    method: 'POST',
    data: parameter
  })
}

export function fetchPayRecord(parameter: any) {
  return useAxios({
    url: 'hussarApi/qwWebService/queryPayRecord',
    method: 'POST',
    data: parameter
  })
}
export function fetchPayTotal(parameter: any) {
  return useAxios({
    url: 'hussarApi/qwWebService/queryPayTotal',
    method: 'POST',
    data: parameter
  })
}
